package com.hy.controller;

import com.hy.service.impl.CommentServiceImpl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class CommentController {
    private CommentServiceImpl commentService = new CommentServiceImpl();

    public void addDiscuss(HttpServletRequest request, HttpServletResponse response) throws Exception {
        commentService.saveDiscuss(request,response);
    }
    public void queryDiscussCount(HttpServletRequest request, HttpServletResponse response) throws Exception {
        commentService.getDiscussCount(request, response);
    }
    public void queryDiscuss(HttpServletRequest request, HttpServletResponse response) throws Exception {
        commentService.getDiscuss(request,response);
    }
    public void modifyTombstone(HttpServletRequest request, HttpServletResponse response) throws Exception{
        commentService.updateTombstone(request, response);
    }

}
